package com.ysd.lis.service.eq.impl;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.ysd.common.Result;
import com.ysd.lis.entity.eq.EqPatrolTaskEqStIt;
import com.ysd.lis.mapper.eq.EqPatrolTaskEqStItMapper;
import com.ysd.lis.service.eq.EqPatrolTaskEqStItService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 * 巡检任务设备的巡检标准细项 服务实现类
 * </p>
 *
 * @author WH
 * @since 2024-08-15
 */
@Service
public class EqPatrolTaskEqStItServiceImpl extends ServiceImpl<EqPatrolTaskEqStItMapper, EqPatrolTaskEqStIt> implements EqPatrolTaskEqStItService {

    @Autowired
    private EqPatrolTaskEqStItMapper eqPatrolTaskEqStItMapper;
    @Override
    public Result findPatrolTaskEqStItList(EqPatrolTaskEqStIt eqPatrolTaskEqStIt) {
        LambdaQueryWrapper<EqPatrolTaskEqStIt> queryWrapper = new LambdaQueryWrapper<>();
        queryWrapper.eq(EqPatrolTaskEqStIt::getTaskEqId,eqPatrolTaskEqStIt.getTaskEqId());
        queryWrapper.eq(EqPatrolTaskEqStIt::getDelFlag,0);
        List<EqPatrolTaskEqStIt> eqPatrolTaskEqStIts = eqPatrolTaskEqStItMapper.selectList(queryWrapper);
        return Result.succ(1, "查询成功！", eqPatrolTaskEqStIts);
    }
}
